<template>
    <div class="yemian">
        <router-link to="/index.vue"><a href="#">&lt;</a></router-link>
        <div class="touxiang">
            <div class="touxiang-nei">
                <img src="./img/NoPath.png" alt="">
            </div>
        </div>
        <p>猫咪详情</p>
        <div class="neirong">
            <h1>平均摄入营养</h1>
            <ul>
                <li v-for="v in xiangqing" :key="v.value">
                    {{ v.ka }}   {{ v.ke }}   {{ v.liang }}
                </li>
            </ul>
            <ul>
                <li v-for="v in liebiao" :key="v.value" class="liebiao">
                    <p class="liebiao-p">{{ v.lie }}</p>
                    <div class="liebiao-biao">{{ v.biao }}</div>
                </li>
            </ul>
        </div>
    </div>
  </template>
  
  <script>
  export default {
    name: "Catdetails",
    data(){
        return{
            xiangqing:[
                {
                    ka:"卡路里",
                    ke:"143g",
                    liang:"15%"
                },
                {
                    ka:"碳水化合物",
                    ke:"26g",
                    liang:"18%"
                },
                {
                    ka:"蛋白质",
                    ke:"0g",
                    liang:"0%"
                },
                {
                    ka:"脂肪",
                    ke:"3.5g",
                    liang:"2.4%"
                }
            ],
            liebiao:[
                {
                    lie:"疫苗预约",
                    biao:"三天后接种"
                },
                {
                    lie:"生日提醒",
                    biao:"倒计时五十六天"
                },
                {
                    lie:"锻炼里程",
                    biao:"今日锻炼5公里"
                },
                {
                    lie:"生病史",
                    biao:"暂无 猫咪很健康"
                },
            ]
        }
    }
  };
  </script>
  
  <style>
     *{
        padding: 0;
        margin: 0;
    }
    .yemian a{
        text-decoration: none;
        font-size: 30px;
        color: black;
    }
     .yemian{
        width: 100%;
        min-height: 100vh;
        background: url("./img/custom\ –\ 8.png") center center no-repeat;
        background-size: 100% 100%;
    }
    .touxiang{
        width: 206px;
        height: 200px;
        border: 5px solid rgb(111, 111, 111);
        border-radius: 50%;
        margin: 0 auto;
        margin-top: 10px;
    }
    .touxiang-nei{
        width: 84%;
        height: 175px;
        border: 3px solid rgb(111, 111, 111);
        border-radius: 50%;
        margin: 0 auto;
        margin-top: 10px;
    }
    .touxiang-nei img{
        height: 175px;
    }
    p{
        color: rgb(112, 112, 112);
        font-size: 25px;
        text-align: center;
    }
    h1{
        color: rgb(223, 127, 127);
    }
    li{
        list-style: none;
        font-size: 20px;
        margin-top: 20px;
    }
    .neirong{
        width: 70%;
        height: 260px;
        margin: 0 auto;
        background-color:rgb(243, 228, 218) ;
        border-radius: 8%;
        text-align: center  ;
    }
    .liebiao{
        width: 45%;
        height: 115px;
        text-align: center;
        float: left;
        margin-left: 3%;
        background-color:rgb(243, 228, 218) ;
        border-radius: 8%;
        margin-top: 50px;
    }
    .liebiao-biao{
        margin-top: 10px;
        font-size: 18px;
    }
  </style>